* cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 17:28:17 +0000 (09:28 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 17:28:17 +0000 (09:28 -0800)
deduce are never used uninitialized.

src/ChangeLog
src/cm.c

index d18e4f225450a338b2371276292e9b49124de74e..146c8b47a92d21fd0132dd7814f0fdc93a852c7d 100644 (file)
@@ -82,6 +82,9 @@
        * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
        (BIDI_BOB): Remove unused macro.
 
+       * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
+       deduce are never used uninitialized.
+
 2011-03-06  Chong Yidong  <cyd@stupidchicken.com>
 
        * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
index d4aedad6db4f3a9d11b4185011ef10cefe96afba..af4116f3fecc22f607a599e0d9b0db2b7f68bb2e 100644 (file)
--- a/src/cm.c
+++ b/src/cm.c
@@ -330,7 +330,7 @@ cmgoto (struct tty_display_info *tty, int row, int col)
             llcost,
             relcost,
             directcost;
-    int     use;
+    int     use IF_LINT (= 0);
     char   *p,
            *dcm;
 
@@ -460,4 +460,3 @@ Wcm_init (struct tty_display_info *tty)
     return - 2;
   return 0;
 }
-